package cn.hou.java.designpattern._18memento;

//备忘录对象,需要与保存对象的属性一致
public class Memento {
	
	private String name; //状态
	
	private String age; //状态

	public Memento(String name, String age) {
		this.name = name;
		this.age = age;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}

}
